<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>修改</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"/>
</head>
<body>
<s:form class="pure-form pure-form-aligned" action="employee/Employee_update" method="post">
	<fieldset>
		<s:hidden name="eid" value="%{model.eid }" />
        <div class="pure-control-group">
            <label for="ename">员工姓名</label>
            <s:textfield name="ename" id="ename" placeholder="员工姓名" value="%{model.ename }" />
        </div>

        <div class="pure-control-group">
            <label for="sex">性别</label>
            <s:radio name="sex"  list="{'男', '女'}" value="%{model.sex }" ></s:radio>
        </div>
        <div class="pure-control-group">
            <label for="birthday">生日</label>
            <input type="date" id="birthday" name="birthday" value="<s:date name="model.birthday"  format="yyyy年MM月dd日" />" />
        </div>
        <div class="pure-control-group">
            <label for="joinDate">就职日期</label>
            <input type="date" id="joinDate"  name="joinDate" value="<s:date name="model.joinDate"  format="yyyy年MM月dd日" />" />
        </div>
       	<div class="pure-control-group">
            <label for="did">所属部门</label>
            <s:select name="department.did" id="did" list="list" listKey="did" listValue="dnameString" headerKey="%{model.department.did}" headerValue="%{model.department.dnameString}"/>
        </div>
        <%-- <s:hidden name="department.descc" value="" />
		<s:hidden name="department.dnameString" value="" /> --%>
        <div class="pure-control-group">
            <label for="username">用户名</label>
            <s:textfield type="text" id="username"  name="username" value="%{model.username }"/>
        </div>
        <div class="pure-control-group">
            <label for="password">密码</label>
            <s:password id="password"  name="password" value="%{model.password }" showPassword="true" />
        </div>
        <div class="pure-control-group">
            <label for="enoString">员工号</label>
            <s:textfield id="enoString" name="enoString" value="%{model.enoString }" />
        </div>
		<div class="pure-controls">
			<s:submit class="pure-button pure-button-primary" value="保存" />
			<button class="pure-button pure-button-primary" onclick="javascript:window.history.back()" >返回</button>
		</div>
	</fieldset>
</s:form>
</body>
</html>
